<?php get_header(); ?>

<!-- start Content Home -->				
<div class="contentautoheight">

	<div class="titlepage">
		<p><span><?php _e('search results'); ?></span></p>
	</div>

<!-- Page Content -->
	<div class="slideimg">
		<div class="autoheight">
			<div class="blog_container">
				<div class="blog_content">
				
		<span class="blog_title" >
			<?php
				$tmp_search = new WP_Query('s=' . esc_html($_GET['s']) . '&show_posts=-1&posts_per_page=-1');
				$count = $tmp_search->post_count;
				if ($count == 1){
					echo $count . ' search result for:</span><span style="color: #666; font-style: italic; font-family: Georgia; font-size: 18px; padding-left: 8px;">&ldquo;&nbsp;' . htmlentities($_GET['s']) . '&nbsp;&rdquo;';
				} elseif ($count >= 0){
					echo $count . ' search results for:</span><span style="color: #666; font-style: italic; font-family: Georgia; font-size: 18px; padding-left: 8px;">&ldquo;&nbsp;' . htmlentities($_GET['s']) . '&nbsp;&rdquo;';
				}	
			?>
		</span><br/><br/>
					
	<?php if (have_posts()) : ?>
	 
		<?php while (have_posts()) : the_post(); ?>

			<div <?php post_class() ?> id="post-<?php the_ID(); ?>" style="border-bottom: dotted #333 1px; padding-top: 15px;">

				<h2 style="padding-bottom: 10px;" id="post-<?php the_ID(); ?>"><a style="font-family: Tahoma; font-size: 20px; line-height: 18px; color: #9cb6c3;" href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>

					<div class="entry" style="font-family: Tahoma; font-size: 13px; line-height: 18px; color: #7A7A7A;">
						<?php wpe_excerpt('wpe_excerptlength_archive', 'wpe_excerptmore'); ?>	
					</div>
					
					<div class="readmore" style="float:right;"><a style="color: #9CB6C3;" href="<?php the_permalink() ?>">[+] Read More</a></div><br/>
					
					<?php get_template_part( 'meta' ); ?>

			</div>

		<?php endwhile; ?>
		
		<?php get_template_part( 'nav' ); ?>

	<?php else : ?>
	
	<!-- NADA -->

	<?php endif; ?>

</div>
							<div class="bgbottom"></div>
						</div>
						
						
						<!-- SIDEBAR -->
						<div class="blog_sidebar">
														
							<?php get_sidebar(); ?>
						
						</div>
						
						
					</div>
					<div class="hidecorner"></div>
				</div>
			</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>